<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('date/picker/picker-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div class=&quot;';
        var config1 = {};
        var params2 = [];
        params2.push('header');
        config1.params = params2;
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, config1, &quot;getBaseCssClasses&quot;, 0, 1, true, undefined);
        buffer += id0;
        buffer += '&quot;&gt;\r\n    &lt;a id=&quot;ks-date-picker-previous-year-btn-';
        var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 2, undefined, false);
        buffer += getExpressionUtil(id3, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('prev-year-btn');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       tabindex=&quot;-1&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;previousYearLabel&quot;, 0, 7, undefined, false);
        buffer += getExpressionUtil(id7, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n    &lt;a id=&quot;ks-date-picker-previous-month-btn-';
        var id8 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 10, undefined, false);
        buffer += getExpressionUtil(id8, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config10 = {};
        var params11 = [];
        params11.push('prev-month-btn');
        config10.params = params11;
        var id9 = getPropertyOrRunCommandUtil(engine, scopes, config10, &quot;getBaseCssClasses&quot;, 0, 11, true, undefined);
        buffer += id9;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       tabindex=&quot;-1&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;previousMonthLabel&quot;, 0, 15, undefined, false);
        buffer += getExpressionUtil(id12, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n    &lt;a class=&quot;';
        var config14 = {};
        var params15 = [];
        params15.push('month-select');
        config14.params = params15;
        var id13 = getPropertyOrRunCommandUtil(engine, scopes, config14, &quot;getBaseCssClasses&quot;, 0, 18, true, undefined);
        buffer += id13;
        buffer += '&quot;\r\n       role=&quot;button&quot;\r\n       href=&quot;#&quot;\r\n       tabindex=&quot;-1&quot;\r\n       hidefocus=&quot;on&quot;\r\n       title=&quot;';
        var id16 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;monthSelectLabel&quot;, 0, 23, undefined, false);
        buffer += getExpressionUtil(id16, true);
        buffer += '&quot;\r\n       id=&quot;ks-date-picker-month-select-';
        var id17 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 24, undefined, false);
        buffer += getExpressionUtil(id17, true);
        buffer += '&quot;&gt;\r\n        &lt;span id=&quot;ks-date-picker-month-select-content-';
        var id18 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 25, undefined, false);
        buffer += getExpressionUtil(id18, true);
        buffer += '&quot;&gt;';
        var id19 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;monthYearLabel&quot;, 0, 25, undefined, false);
        buffer += getExpressionUtil(id19, true);
        buffer += '&lt;/span&gt;\r\n        &lt;span class=&quot;';
        var config21 = {};
        var params22 = [];
        params22.push('month-select-arrow');
        config21.params = params22;
        var id20 = getPropertyOrRunCommandUtil(engine, scopes, config21, &quot;getBaseCssClasses&quot;, 0, 26, true, undefined);
        buffer += id20;
        buffer += '&quot;&gt;x&lt;/span&gt;\r\n    &lt;/a&gt;\r\n    &lt;a id=&quot;ks-date-picker-next-month-btn-';
        var id23 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 28, undefined, false);
        buffer += getExpressionUtil(id23, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config25 = {};
        var params26 = [];
        params26.push('next-month-btn');
        config25.params = params26;
        var id24 = getPropertyOrRunCommandUtil(engine, scopes, config25, &quot;getBaseCssClasses&quot;, 0, 29, true, undefined);
        buffer += id24;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       tabindex=&quot;-1&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id27 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;nextMonthLabel&quot;, 0, 33, undefined, false);
        buffer += getExpressionUtil(id27, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n    &lt;a id=&quot;ks-date-picker-next-year-btn-';
        var id28 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 36, undefined, false);
        buffer += getExpressionUtil(id28, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config30 = {};
        var params31 = [];
        params31.push('next-year-btn');
        config30.params = params31;
        var id29 = getPropertyOrRunCommandUtil(engine, scopes, config30, &quot;getBaseCssClasses&quot;, 0, 37, true, undefined);
        buffer += id29;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       tabindex=&quot;-1&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id32 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;nextYearLabel&quot;, 0, 41, undefined, false);
        buffer += getExpressionUtil(id32, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n&lt;/div&gt;\r\n&lt;div class=&quot;';
        var config34 = {};
        var params35 = [];
        params35.push('body');
        config34.params = params35;
        var id33 = getPropertyOrRunCommandUtil(engine, scopes, config34, &quot;getBaseCssClasses&quot;, 0, 45, true, undefined);
        buffer += id33;
        buffer += '&quot;&gt;\r\n    &lt;table class=&quot;';
        var config37 = {};
        var params38 = [];
        params38.push('table');
        config37.params = params38;
        var id36 = getPropertyOrRunCommandUtil(engine, scopes, config37, &quot;getBaseCssClasses&quot;, 0, 46, true, undefined);
        buffer += id36;
        buffer += '&quot; cellspacing=&quot;0&quot; role=&quot;grid&quot;&gt;\r\n        &lt;thead&gt;\r\n        &lt;tr role=&quot;row&quot;&gt;\r\n            ';
        var config39 = {};
        var params40 = [];
        var id41 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;showWeekNumber&quot;, 0, 49, undefined, true);
        params40.push(id41);
        config39.params = params40;
        config39.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n            &lt;th role=&quot;columnheader&quot; class=&quot;';
            var config43 = {};
            var params44 = [];
            params44.push('column-header');
            config43.params = params44;
            var id42 = getPropertyOrRunCommandUtil(engine, scopes, config43, &quot;getBaseCssClasses&quot;, 0, 50, true, undefined);
            buffer += id42;
            buffer += ' ';
            var config46 = {};
            var params47 = [];
            params47.push('week-number-header');
            config46.params = params47;
            var id45 = getPropertyOrRunCommandUtil(engine, scopes, config46, &quot;getBaseCssClasses&quot;, 0, 50, true, undefined);
            buffer += id45;
            buffer += '&quot;&gt;\r\n                &lt;span class=&quot;';
            var config49 = {};
            var params50 = [];
            params50.push('column-header-inner');
            config49.params = params50;
            var id48 = getPropertyOrRunCommandUtil(engine, scopes, config49, &quot;getBaseCssClasses&quot;, 0, 51, true, undefined);
            buffer += id48;
            buffer += '&quot;&gt;x&lt;/span&gt;\r\n            &lt;/th&gt;\r\n            ';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config39, &quot;if&quot;, 49);
        buffer += '\r\n            ';
        var config51 = {};
        var params52 = [];
        var id53 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;weekdays&quot;, 0, 54, undefined, true);
        params52.push(id53);
        config51.params = params52;
        config51.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n            &lt;th role=&quot;columnheader&quot; title=&quot;';
            var id54 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 55, undefined, false);
            buffer += getExpressionUtil(id54, true);
            buffer += '&quot; class=&quot;';
            var config56 = {};
            var params57 = [];
            params57.push('column-header');
            config56.params = params57;
            var id55 = getPropertyOrRunCommandUtil(engine, scopes, config56, &quot;getBaseCssClasses&quot;, 0, 55, true, undefined);
            buffer += id55;
            buffer += '&quot;&gt;\r\n                &lt;span class=&quot;';
            var config59 = {};
            var params60 = [];
            params60.push('column-header-inner');
            config59.params = params60;
            var id58 = getPropertyOrRunCommandUtil(engine, scopes, config59, &quot;getBaseCssClasses&quot;, 0, 56, true, undefined);
            buffer += id58;
            buffer += '&quot;&gt;\r\n                    ';
            var id62 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 57, undefined, true);
            var id61 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;veryShortWeekdays.&quot; + id62 + &quot;&quot;, 0, 57, undefined, false);
            buffer += getExpressionUtil(id61, true);
            buffer += '\r\n                &lt;/span&gt;\r\n            &lt;/th&gt;\r\n            ';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config51, &quot;each&quot;, 54);
        buffer += '\r\n        &lt;/tr&gt;\r\n        &lt;/thead&gt;\r\n        &lt;tbody id=&quot;ks-date-picker-tbody-';
        var id63 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 63, undefined, false);
        buffer += getExpressionUtil(id63, true);
        buffer += '&quot;&gt;\r\n        ';
        var id64 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;renderDates&quot;, 0, 64, undefined, false);
        buffer += getExpressionUtil(id64, false);
        buffer += '\r\n        &lt;/tbody&gt;\r\n    &lt;/table&gt;\r\n&lt;/div&gt;\r\n';
        var config65 = {};
        var params66 = [];
        var id67 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;showToday&quot;, 0, 68, undefined, true);
        var id68 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;showClear&quot;, 0, 68, undefined, true);
        params66.push(id67 || id68);
        config65.params = params66;
        config65.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n&lt;div class=&quot;';
            var config70 = {};
            var params71 = [];
            params71.push('footer');
            config70.params = params71;
            var id69 = getPropertyOrRunCommandUtil(engine, scopes, config70, &quot;getBaseCssClasses&quot;, 0, 69, true, undefined);
            buffer += id69;
            buffer += '&quot;&gt;\r\n    &lt;a class=&quot;';
            var config73 = {};
            var params74 = [];
            params74.push('today-btn');
            config73.params = params74;
            var id72 = getPropertyOrRunCommandUtil(engine, scopes, config73, &quot;getBaseCssClasses&quot;, 0, 70, true, undefined);
            buffer += id72;
            buffer += '&quot;\r\n       role=&quot;button&quot;\r\n       hidefocus=&quot;on&quot;\r\n       tabindex=&quot;-1&quot;\r\n       href=&quot;#&quot;\r\n       id=&quot;ks-date-picker-today-btn-';
            var id75 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 75, undefined, false);
            buffer += getExpressionUtil(id75, true);
            buffer += '&quot;\r\n       title=&quot;';
            var id76 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;todayTimeLabel&quot;, 0, 76, undefined, false);
            buffer += getExpressionUtil(id76, true);
            buffer += '&quot;&gt;';
            var id77 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;todayLabel&quot;, 0, 76, undefined, false);
            buffer += getExpressionUtil(id77, true);
            buffer += '&lt;/a&gt;\r\n    &lt;a class=&quot;';
            var config79 = {};
            var params80 = [];
            params80.push('clear-btn');
            config79.params = params80;
            var id78 = getPropertyOrRunCommandUtil(engine, scopes, config79, &quot;getBaseCssClasses&quot;, 0, 77, true, undefined);
            buffer += id78;
            buffer += '&quot;\r\n       role=&quot;button&quot;\r\n       hidefocus=&quot;on&quot;\r\n       tabindex=&quot;-1&quot;\r\n       href=&quot;#&quot;\r\n       id=&quot;ks-date-picker-clear-btn-';
            var id81 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 82, undefined, false);
            buffer += getExpressionUtil(id81, true);
            buffer += '&quot;&gt;';
            var id82 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;clearLabel&quot;, 0, 82, undefined, false);
            buffer += getExpressionUtil(id82, true);
            buffer += '&lt;/a&gt;\r\n&lt;/div&gt;\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config65, &quot;if&quot;, 68);
        return buffer;
    }
});</pre>
</body>
</html>
